package 面向对象高级.计算器;

public class UseCompute {

    //针对接口编程， 而不针对具体实现类
    public void useCom(Compute com,int a,int b){
        System.out.println(com.computer(a,b));
    }
}
